import 'package:flutter/material.dart';
import '../main.dart';

// 未登录
class NotLogin extends StatelessWidget {
  const NotLogin({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(height: 20),
        Text('您还未登陆', style: TextStyle(fontSize: 22)),
        SizedBox(height: 20),
        Text('登陆即享受豪华双日游'),
        SizedBox(height: 20),
        ElevatedButton(
          onPressed: () {
            rootStore.users.loginIn(
              {'userName': '大壮', 'nickName': 'Lee Zhuang'},
            );
          },
          child: Text('立即登陆'),
        ),
      ],
    );
  }
}
